package com.nereyda.application.managers
{
	import flash.events.MouseEvent;
	
	import mx.controls.Image;
	
	public class EventManager
	{
		public function imageButtonMouseHandler( event:MouseEvent ):void
		{
			if ( event.type == MouseEvent.MOUSE_OVER ) {
				event.target.alpha = .5;
			}
			else if ( event.type == MouseEvent.MOUSE_OUT ) {
				event.target.alpha = 1;					
			}
		}
		
		// Devuelve una instancia única de la clase.
		//
		private static var instance :EventManager = null;
		
		public static function getInstance():EventManager
		{
			if ( instance == null )
				instance = new EventManager();
			
			return( instance );
		}

	}
}